use serde::{Serialize, Deserialize};

#[derive(Serialize,Deserialize,Debug,Clone,sqlx::FromRow)]
pub struct ImageShare{
    pub id:i32,
    pub author_id: i32,
    pub image:String,
    pub content: String,
    pub image_type: String,
    pub comments: Vec<i32>,
    pub status: String,
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct CreateImageShare{
    pub image:String,
    pub content: String,
    pub image_type: String,
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct UpdateImageShare{
    pub id:i32,
    pub image:String,
    pub content: String,
    pub image_type: String,
}
